import { Component } from '@angular/core';
import { NavController, IonicPage } from 'ionic-angular';
import { NativePageTransitions, NativeTransitionOptions } from '@ionic-native/native-page-transitions';

@IonicPage()
@Component({
  selector: 'page-settings',
  templateUrl: 'settings.html'
})
export class SettingsListPage {
  constructor(public navCtrl: NavController, private nativePageTransitions: NativePageTransitions) {
  }


  ionViewWillLeave() {

   let options: NativeTransitionOptions = {
      direction: 'right',
      duration: 400,
      slowdownfactor: -1,
      iosdelay: 50
     };

   this.nativePageTransitions.slide(options)
     .then(function(){})
     .catch(function(){});

  }


}
